<?php
class ORMpz_ecom_point {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->rate)) {
      $obj->rate =  $args->rate;
    }
    if (isset($args->level1)) {
      $obj->level1 =  $args->level1;
    }
    if (isset($args->level2)) {
      $obj->level2 =  $args->level2;
    }
    return $obj;
  }
}
?>
